package STUDENT.TRINHQUANGXUANDUC.BASIC.CAUTRUCLAPTRINH;

import java.util.Scanner;

public class BAI4 {
public static void main(String[] args) {
	int thang, nam;
	Scanner sc = new Scanner(System.in);
	System.out.println("Nhap thang: ");
	thang = sc.nextInt();
	sc = new Scanner(System.in);
	System.out.println("Nhap nam: ");
	nam=sc.nextInt();
	if (thang ==4 || thang ==6||thang == 9 || thang == 11) {
		System.out.println("Thang " + thang+ "Nam " + nam +"co 30 ngay");
	}
	if(thang == 3 || thang == 5|| thang == 7|| thang==12)
	{
		System.out.println("Thang " + thang+ "Nam " + nam +"co 31 ngay");
	}
	if ((nam %4)==0&& nam %100 !=0) {
		System.out.println("Thang " + thang+ "Nam " + nam +" co 29 ngay");
	}
	else {
		System.out.println("Thang " + thang+ "Nam " + nam +" co 28 ngay");
	}
}
}
